Context based synonym filtering for natural language processing systems

ABSTRACT

Mechanisms are provided for performing context based synonym filtering for natural language processing. Content is parsed into one or more conceptual units, wherein each conceptual unit comprises a portion of text of the content that is associated with a single concept. For each conceptual unit, a term in the conceptual unit is identified that has a synonym to be utilized during natural language processing of the content. A first measure of relatedness of the term to at least one other term in the conceptual unit is determined. A second measure of relatedness of the synonym of the term to the at least one other term in the conceptual unit is determined. A determination whether or not to utilize the synonym when performing natural language processing on the conceptual unit is made based on the first and second measures of relatedness and natural language processing on the content is performed accordingly.

BACKGROUND

The present application relates generally to an improved data processingapparatus and method and more specifically to mechanisms for performingcontext based synonym filtering for natural language processing systems.

Natural language processing (NLP) is a field of computer science,artificial intelligence, and linguistics concerned with the interactionsbetween computers and human (natural) languages. As such, NLP is relatedto the area of human-computer interaction. Many challenges in NLPinvolve natural language understanding, i.e. enabling computers toderive meaning from human or natural language input.

Modern NLP algorithms are based on machine learning, especiallystatistical machine learning. The paradigm of machine learning isdifferent from that of most prior attempts at language processing. Priorimplementations of language-processing tasks typically involved thedirect hand coding of large sets of rules whereas the machine-learningparadigm calls instead for using general learning algorithms (often,although not always, grounded in statistical inference) to automaticallylearn such rules through the analysis of large corpora of typicalreal-world examples. A corpus (plural, “corpora”) is a set of documents(or sometimes, individual sentences) that have been hand-annotated withthe correct values to be learned.

Many different classes of machine learning algorithms have been appliedto NLP tasks. These algorithms take as input a large set of “features”that are generated from the input data. Some of the earliest-usedalgorithms, such as decision trees, produced systems of hard if-thenrules similar to the systems of hand-written rules that were thencommon. Increasingly, however, research has focused on statisticalmodels, which make soft, probabilistic decisions based on attachingreal-valued weights to each input feature. Such models have theadvantage that they can express the relative certainty of many differentpossible answers rather than only one, producing more reliable resultswhen such a model is included as a component of a larger system.

One type of NLP system is a search engine, such as an Internet searchengine, e.g., Google™, Yahoo!™, or the like. Such search systems receiveone or more terms and search a corpus of content for matching terms andreturn results indicating the sources of content having the specifiedterms. In some instances, more advanced processing of search terms isperformed which includes the implementation of NLP algorithms to improvethe results generated by the search engine.

Another type of NLP system is a Question and Answer (QA) system whichreceives an input question, analyzes the input question using NLPalgorithms, and returns results indicative of the most probable answerto the input question. QA systems provide automated mechanisms forsearching through large sets of sources of content, e.g., electronicdocuments, and analyze them with regard to an input question todetermine an answer to the question and a confidence measure as to howaccurate an answer is for answering the input question.

One such QA system is the IBM Watson™ system available fromInternational Business Machines (IBM) Corporation of Armonk, N.Y. TheIBM Watson™ system is an application of advanced natural languageprocessing, information retrieval, knowledge representation andreasoning, and machine learning technologies to the field of open domainquestion answering. The IBM Watson™ system is built on IBM's DeepQA™technology used for hypothesis generation, massive evidence gathering,analysis, and scoring. DeepQA™ takes an input question, analyzes it,decomposes the question into constituent parts, generates one or morehypothesis based on the decomposed question and results of a primarysearch of answer sources, performs hypothesis and evidence scoring basedon a retrieval of evidence from evidence sources, performs synthesis ofthe one or more hypothesis, and based on trained models, performs afinal merging and ranking to output an answer to the input questionalong with a confidence measure.

Various United States Patent Application Publications describe varioustypes of question and answer systems. U.S. Patent ApplicationPublication No. 2011/0125734 discloses a mechanism for generatingquestion and answer pairs based on a corpus of data. The system startswith a set of questions and then analyzes the set of content to extractanswer to those questions. U.S. Patent Application Publication No.2011/0066587 discloses a mechanism for converting a report of analyzedinformation into a collection of questions and determining whetheranswers for the collection of questions are answered or refuted from theinformation set. The results data are incorporated into an updatedinformation model.

SUMMARY

In one illustrative embodiment, a method, in a data processing systemcomprising a processor and a memory, for performing context basedsynonym filtering for natural language processing is provided. Themethod comprises parsing, by the data processing system, content intoone or more conceptual units, wherein each conceptual unit comprises aportion of text of the content that is associated with a single concept.The method further comprises, for each conceptual unit in the one ormore conceptual units, identifying, by the data processing system, aterm in the conceptual unit that has a synonym to be utilized duringnatural language processing of the content. Moreover, the methodcomprises determining, by the data processing system, a first measure ofrelatedness of the term to at least one other term in the conceptualunit and determining, by the data processing system, a second measure ofrelatedness of the synonym of the term to the at least one other term inthe conceptual unit. In addition, the method comprises determining, bythe data processing system, whether or not to utilize the synonym whenperforming natural language processing on the conceptual unit.Furthermore, the method comprises performing, by the data processingsystem, natural language processing on the content based on results ofdetermining whether or not to utilize the synonym.

In other illustrative embodiments, a computer program product comprisinga computer useable or readable medium having a computer readable programis provided. The computer readable program, when executed on a computingdevice, causes the computing device to perform various ones of, andcombinations of, the operations outlined above with regard to the methodillustrative embodiment.

In yet another illustrative embodiment, a system/apparatus is provided.The system/apparatus may comprise one or more processors and a memorycoupled to the one or more processors. The memory may compriseinstructions which, when executed by the one or more processors, causethe one or more processors to perform various ones of, and combinationsof, the operations outlined above with regard to the method illustrativeembodiment.

These and other features and advantages of the present invention will bedescribed in, or will become apparent to those of ordinary skill in theart in view of, the following detailed description of the exampleembodiments of the present invention.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The invention, as well as a preferred mode of use and further objectivesand advantages thereof, will best be understood by reference to thefollowing detailed description of illustrative embodiments when read inconjunction with the accompanying drawings, wherein:

FIG. 1 is an example diagram of a distributed data processing system inwhich aspects of the illustrative embodiments may be implemented;

FIG. 2 is an example block diagram of a computing device in whichaspects of the illustrative embodiments may be implemented;

FIG. 3 is an example block diagram of a conceptual context synonymverification engine in accordance with one illustrative embodiment;

FIG. 4 is a flowchart outlining an example operation of a conceptualcontext synonym verification engine in accordance with one illustrativeembodiment; and

FIG. 5 illustrates a QA system pipeline for processing an input questionin accordance with one illustrative embodiment.

DETAILED DESCRIPTION

It has been recognized that synonyms play an integral part in anynatural language processing (NLP) system, such as may be used by asearch engine, question and answer (QA) system, or the like. Synonymsallow text to be found that, while not matching the exact termssearched, match the concepts searched for. To this end, a great deal ofwork has been done to create exhaustive synonym lists for both specificdomains, such as cancer research, and open domains, such as WordNet®, orthe like.

While synonym lists provide greater functionality for NLP systems,problems exist with such synonym lists in that language is imprecise.That is, a synonym that applies in one domain or query does notnecessarily apply in another. For example, if one submits a question toa NLP system, such as a QA system, that is of the type “What submarinecan stay under water the longest?” one would not find “H2O” to be auseful synonym for “water.” Likewise, if one where to ask or search for“What year did John F. Kennedy join the US Navy?”, the term “fluorine”would not be a useful synonym for “F”.

Several approaches have been created to attempt to filter outnon-applicable synonyms. These approaches typically fall into twocategories. A first category requires the creation of synonym listswhich may include generic synonym lists and separate domain-specificsynonym lists using manual and/or semi-automatic mechanisms. A secondcategory requires the recordation of user interactions to determinesynonyms based on previous user actions.

The illustrative embodiments provide mechanisms for performing contextbased synonym filtering for natural language processing systems. Thatis, the mechanisms of the illustrative embodiments determine theapplicability of a synonym to the submitted query or question, using thecontext of the entire query or question, and without the need ofdomain-specific synonym lists, dictionaries, or recorded userinteractions. The mechanisms of the illustrative embodiments utilizedetermined measures of relatedness of terms with other terms in aconceptual unit and determined measures of relatedness of synonyms ofthese terms with the other terms in the conceptual unit as a basis fordetermining whether the synonyms are valid synonyms for the originalterms. For example, if semantic distances between the synonym of anoriginal term, and one or more other terms in the conceptual unit areless than or equal to the semantic distances between the original termand the one or more other terms in the conceptual unit, then it may bedetermined that the synonym is a valid synonym for the original term.

In other words, in an implementation within a QA system, the mechanismsof the illustrative embodiments filter out non-applicable synonyms bycomparing the semantic similarity of the proposed synonym to the rest ofthe input question with the similarity of the original term to the restof the input question. For example, if the input question is “What yeardid John F. Kennedy join the US Navy?”, and the proposed synonym is“fluorine” for the term “F”, the mechanisms of the illustrativeembodiments measure the semantic affinity or distance of the term “F” tothe rest of the input question and the semantic affinity or distance ofthe term “fluorine” to the rest of the input question and use theresulting measures of affinity/distance to determine the applicabilityof the synonym. Semantic “distance” is the distance in semantic spacesuch that the smaller the distance, the more related the compared termsare or, in other words, if two terms have the same or similar meaningsin a natural language sense, the distance is smaller than if they aredissimilar. Semantic “affinity” is an abstract view of the inverse ofthe distance, e.g., 1/distance, or in other words, the closer thedistance (more related), the higher the affinity. Semantic affinity mayalso be referred to as semantic relatedness.

Semantic affinity or distance can be measured in many different ways.For example, a modified form of the Normalized Compressive Distance(NCD) or Normalized Google Distance (NOD) may be utilized. NCD isdescribed in, for example, Cilibrasi et al., “Clustering byCompression,” IEEE Transactions on Information Theory, Vol. 51, No. 4,April 2005, pages 1523-1545, which is hereby incorporated by reference.NGD is described on the corresponding Wikipedia webpage for this term.NGD is a semantic similarity measure derived from the number of hitsreturned by the Google search engine for a given set of keywords.Keywords with the same or similar meanings in a natural language sensetend to be “close” in units of Google distance, while words withdissimilar meanings tend to be farther apart. Specifically, thenormalized Google distance between two search terms x and y is (equation1):

${{NGD}\left( {x,y} \right)} = \frac{{\max\left\{ {{\log\;{f(x)}},{\log\;{f(y)}}} \right\}} - {\log\;{f\left( {x,y} \right)}}}{{\log\; M} - {\min\left\{ {{\log\;{f(x)}},{\log\;{f(y)}}} \right\}}}$

where M is the total number of web pages searched by Google; f(x) andf(y) are the number of hits for search terms x and y, respectively; andf(x, y) is the number of web pages on which both x and y occur. If thetwo search terms x and y never occur together on the same web page, butdo occur separately, the normalized Google distance between them isinfinite. If both terms always occur together, their NGD is zero, orequivalent to the coefficient between x squared and y squared.

Semantic affinity/distance measuring mechanisms of the illustrativeembodiments are modified to operate on conceptual units that have a sizesmaller than the portion of content as a whole. Thus, for example, if aportion of content is a document, then the conceptual unit is smallerthan the document, e.g., a sentence, clauses, n-grams, or the like.Similarly, if a portion of content is a query or input question, thenthe conceptual unit may likewise be clauses, n-grams, individual terms,or the like. Thus, whereas NCD and NGD use a corpus based on completedocuments, or a corpus strung together as one continuous string, thecorpus of the illustrative embodiments is based on conceptual unitswhich are a unit of text that represents a single statement, question,idea, concept, or the like, that has a size less than the total size ofthe portion of content in which the conceptual unit is provided.

The goal of defining conceptual units is to model and take advantage ofhow people naturally try to reduce ambiguity, amphiboly, andequivocation in their writing. In other words, one might use twodifferent meanings of the same word in a document. However, it is lesslikely that one would use two meanings of the same word in a paragraph,and even less so in a sentence or clause. Thus, the conceptual unit isthe smallest size sub-portion of text that represents a concept withinthe portion of content. The simplest form of a conceptual unit is asentence or paragraph; however other conceptual units such as n-grams,clauses, phrases, terms, and the like, may be used without departingfrom the spirit and scope of the illustrative embodiments. The exactsize of the conceptual units, or the semantic resolution, depends on thesize of the corpus, the writing styles of the contributors to thatcorpus, and the amount of ambiguity allowable to the system.

The mechanisms of the illustrative embodiments parse out everyconceptual unit in every portion of content of a corpus, e.g., everydocument in the corpus, and uses these conceptual units as a basis forcalculating similarity across a smaller window. That is, rather than twoterms being considered related to one another if they appear anywherewithin the same document or if they are adjacent to one another, withthe mechanisms of the illustrative embodiments, the two terms areconsidered to be related only if they appear within the same collectionof words describing a single concept, as represented by the conceptualunit.

For each conceptual unit in the portion of content, e.g., a query orinput question, a portion of a document, or the like, an operation isperformed to determine the appropriateness of synonyms for terms withinthe conceptual unit. The operation involves first removing all stopwords in the conceptual unit, i.e. words that are generic in nature andprovide little meaningful information, e.g., the words “the”, “a”, “an”,and the like. The original term in the conceptual unit for which asynonym is to be evaluated is extracted from the conceptual unit, e.g.,in the examples mentioned above, the “F” or “water” terms may beextracted from the example input questions. Thereafter, measures of therelatedness or affinity of the extracted original term to the otherterms in the conceptual unit are generated. In addition, measures of therelatedness or affinity of the synonym to the other terms in theconceptual unit are generated. The measures are then compared and if apredetermined relationship between the measures exists, then it isdetermined that the synonym is a valid synonym for consideration whenperforming natural language processing operations on the originalportion of content.

For example, a semantic affinity or distance between the original termand a first term in the conceptual unit, e.g., between “F” and “John”,may be calculated using a NCD, NGD, or other affinity measuringalgorithm. A semantic affinity or distance between the synonym and thefirst term in the conceptual unit, e.g., “fluorine” and “John”, may becalculated using a NCD, NGD, or other affinity measuring algorithm. Thefunctions of these semantic affinities may be compared such that if itis determined that the semantic affinity of the synonym is equal to orgreater than the semantic affinity of the original term, then thesynonym is considered to be a valid synonym for the original term. Thiscan be performed with regard to multiple terms in the conceptual unitand a combination of the plurality of resulting affinities may be usedto make the determination as to whether the synonym is a valid synonymor not, e.g., an average measure of affinity, a combination of themeasures of affinity, or other combination of measures of affinity forthe original term and measures of affinity for the synonym may beutilized.

In one illustrative embodiment, the following relationship is evaluatedfor each conceptual unit and combination of original term andcorresponding candidate synonym (equation 2):

${\sum\limits_{n = 1}^{N}{\frac{1}{N}{f\left( {W_{n},{ORIG}} \right)}}} \leq {\sum\limits_{n = 1}^{N}{\alpha\frac{1}{N}{f\left( {W_{n},{SYN}} \right)}\begin{Bmatrix}{pass} \\{fail}\end{Bmatrix}}}$where N is the number of other words/terms, or remaining words/terms, inthe conceptual unit, W is the set of remaining words/terms in theconceptual unit, ORIG is the original term, SYN is the synonym beingevaluated, alpha is a constant that facilitates imprecise matches, andf( ) is a semantic affinity/distance function using a conceptual unitbasis for performing the semantic affinity/distance calculations. If therelationship is satisfied, it is considered a “pass” result and if therelationship is not satisfied, then it is considered a “fail” result. Ifthe result is a “pass” then the synonym is likely to be useful andshould be used during performance of the natural language processingoperation. If the result is a “fail”, it is unlikely that the synonymwill be useful and should not be used during performance of the naturallanguage processing operation.

The natural language processing (NLP) operation may be any NLP operationsuitable for implementing NLP on structured or unstructured text. SuchNLP operations may involve processing text of a query or input questionfor purposes of performing searches, for purposes of performing questionanswering by a QA system, or the like. Any NLP operation is intended tobe within the spirit and scope of the illustrative embodiments. However,in one illustrative embodiment, the NLP operation comprises processingan input question by a QA system so as to utilize synonyms for terms inthe input question to facilitate the generation of queries appliedagainst a corpus of documents that are potential sources of candidateanswers to the input question.

Thus, with the mechanisms of the illustrative embodiments context awareidentification of synonyms is made possible so as to identify synonymsrelevant to the particular conceptual unit rather than using general orimprecise synonym lists, or requiring user action recording to identifysynonyms based on previous interactions by users. As a result, betterNLP operation results are generated by focusing such NLP operations onsynonyms that are relevant to the particular context of the portion ofcontent, e.g., query or input question.

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Java, Smalltalk, C++ or the like,functional programming languages such as Prolog and LISP, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The illustrative embodiments provide mechanisms for improving theoperation of natural language processing mechanisms by verifyingsynonyms used by such natural language processing mechanisms based onthe conceptual context of the original term for which the synonym is tobe used. As such, the mechanisms of the illustrative embodiments may beutilized in many different types of natural language processing systemsincluding, but not limited to, search engines, question and answer (QA)systems, and the like. In order to provide a context for the descriptionof the specific elements and functionality of the illustrativeembodiments, FIGS. 1 and 2 are provided hereafter as exampleenvironments in which aspects of the illustrative embodiments may beimplemented. It should be appreciated that FIGS. 1 and 2 are onlyexamples and are not intended to assert or imply any limitation withregard to the environments in which aspects or embodiments of thepresent invention may be implemented. Many modifications to the depictedenvironments may be made without departing from the spirit and scope ofthe present invention.

FIG. 1 depicts a pictorial representation of an example distributed dataprocessing system in which aspects of the illustrative embodiments maybe implemented. Distributed data processing system 100 may include anetwork of computers in which aspects of the illustrative embodimentsmay be implemented. The distributed data processing system 100 containsat least one network 102, which is the medium used to providecommunication links between various devices and computers connectedtogether within distributed data processing system 100. The network 102may include connections, such as wire, wireless communication links, orfiber optic cables.

In the depicted example, server 104 and server 106 are connected tonetwork 102 along with storage unit 108. In addition, clients 110, 112,and 114 are also connected to network 102. These clients 110, 112, and114 may be, for example, personal computers, network computers, or thelike. In the depicted example, server 104 provides data, such as bootfiles, operating system images, and applications to the clients 110,112, and 114. Clients 110, 112, and 114 are clients to server 104 in thedepicted example. Distributed data processing system 100 may includeadditional servers, clients, and other devices not shown.

In the depicted example, distributed data processing system 100 is theInternet with network 102 representing a worldwide collection ofnetworks and gateways that use the Transmission ControlProtocol/Internet Protocol (TCP/IP) suite of protocols to communicatewith one another. At the heart of the Internet is a backbone ofhigh-speed data communication lines between major nodes or hostcomputers, consisting of thousands of commercial, governmental,educational and other computer systems that route data and messages. Ofcourse, the distributed data processing system 100 may also beimplemented to include a number of different types of networks, such asfor example, an intranet, a local area network (LAN), a wide areanetwork (WAN), or the like. As stated above, FIG. 1 is intended as anexample, not as an architectural limitation for different embodiments ofthe present invention, and therefore, the particular elements shown inFIG. 1 should not be considered limiting with regard to the environmentsin which the illustrative embodiments of the present invention may beimplemented.

FIG. 2 is a block diagram of an example data processing system in whichaspects of the illustrative embodiments may be implemented. Dataprocessing system 200 is an example of a computer, such as client 110 inFIG. 1, in which computer usable code or instructions implementing theprocesses for illustrative embodiments of the present invention may belocated.

In the depicted example, data processing system 200 employs a hubarchitecture including north bridge and memory controller hub (NB/MCH)202 and south bridge and input/output (I/O) controller hub (SB/ICH) 204.Processing unit 206, main memory 208, and graphics processor 210 areconnected to NB/MCH 202. Graphics processor 210 may be connected toNB/MCH 202 through an accelerated graphics port (AGP).

In the depicted example, local area network (LAN) adapter 212 connectsto SB/ICH 204. Audio adapter 216, keyboard and mouse adapter 220, modem222, read only memory (ROM) 224, hard disk drive (HDD) 226, CD-ROM drive230, universal serial bus (USB) ports and other communication ports 232,and PCI/PCIe devices 234 connect to SB/ICH 204 through bus 238 and bus240. PCI/PCIe devices may include, for example, Ethernet adapters,add-in cards, and PC cards for notebook computers. PCI uses a card buscontroller, while PCIe does not. ROM 224 may be, for example, a flashbasic input/output system (BIOS).

HDD 226 and CD-ROM drive 230 connect to SB/ICH 204 through bus 240. HDD226 and CD-ROM drive 230 may use, for example, an integrated driveelectronics (IDE) or serial advanced technology attachment (SATA)interface. Super I/O (SIO) device 236 may be connected to SB/ICH 204.

An operating system runs on processing unit 206. The operating systemcoordinates and provides control of various components within the dataprocessing system 200 in FIG. 2. As a client, the operating system maybe a commercially available operating system such as Microsoft® Windows7®. An object-oriented programming system, such as the Java™ programmingsystem, may run in conjunction with the operating system and providescalls to the operating system from Java™ programs or applicationsexecuting on data processing system 200.

As a server, data processing system 200 may be, for example, an IBM®eServer™ System P® computer system, running the Advanced InteractiveExecutive (AIX®) operating system or the LINUX® operating system. Dataprocessing system 200 may be a symmetric multiprocessor (SMP) systemincluding a plurality of processors in processing unit 206.Alternatively, a single processor system may be employed.

Instructions for the operating system, the object-oriented programmingsystem, and applications or programs are located on storage devices,such as HDD 226, and may be loaded into main memory 208 for execution byprocessing unit 206. The processes for illustrative embodiments of thepresent invention may be performed by processing unit 206 using computerusable program code, which may be located in a memory such as, forexample, main memory 208, ROM 224, or in one or more peripheral devices226 and 230, for example.

A bus system, such as bus 238 or bus 240 as shown in FIG. 2, may becomprised of one or more buses. Of course, the bus system may beimplemented using any type of communication fabric or architecture thatprovides for a transfer of data between different components or devicesattached to the fabric or architecture. A communication unit, such asmodem 222 or network adapter 212 of FIG. 2, may include one or moredevices used to transmit and receive data. A memory may be, for example,main memory 208, ROM 224, or a cache such as found in NB/MCH 202 in FIG.2.

Those of ordinary skill in the art will appreciate that the hardware inFIGS. 1 and 2 may vary depending on the implementation. Other internalhardware or peripheral devices, such as flash memory, equivalentnon-volatile memory, or optical disk drives and the like, may be used inaddition to or in place of the hardware depicted in FIGS. 1 and 2. Also,the processes of the illustrative embodiments may be applied to amultiprocessor data processing system, other than the SMP systemmentioned previously, without departing from the spirit and scope of thepresent invention.

Moreover, the data processing system 200 may take the form of any of anumber of different data processing systems including client computingdevices, server computing devices, a tablet computer, laptop computer,telephone or other communication device, a personal digital assistant(PDA), or the like. In some illustrative examples, data processingsystem 200 may be a portable computing device that is configured withflash memory to provide non-volatile memory for storing operating systemfiles and/or user-generated data, for example. Essentially, dataprocessing system 200 may be any known or later developed dataprocessing system without architectural limitation.

One or more of the computing devices in FIG. 1, e.g., servers 104 and/or106, may implement a natural language processing mechanism in accordancewith the illustrative embodiments. Such a natural language processingmechanism comprises a conceptual context synonym verification enginehaving logic for implementing the various operations and algorithmsdescribed herein. It should be appreciated that a “mechanism,” as usedherein, may be an implementation of the functions or aspects of theillustrative embodiments in the form of an apparatus, a procedure, or acomputer program product. The mechanisms described herein may beimplemented as specialized hardware, software executing on generalpurpose hardware, software instructions stored on a medium such that theinstructions are readily executable by specialized or general purposehardware, a procedure or method for executing the functions, or acombination of the above.

FIG. 3 is an example block diagram of a conceptual context synonymverification engine in accordance with one illustrative embodiment. Theelements shown in FIG. 3 may be implemented in hardware, softwareexecuting on hardware, or any combination of hardware and software. Asshown in FIG. 3, a natural language processing mechanism 310, such as asearch engine, QA system, or the like, submits a portion of content 320to the conceptual context synonym verification engine 300. The portionof content 320 may be any portion of textual content that includes aplurality of words/terms in which at least one of the words/terms is anoriginal word/term that has a synonym that needs to be verified as beinga valid synonym for the original word/term (hereafter referred to simplyas a “term”) within the conceptual context of the portion of content320. Thus, for example, the portion of content 320, in some illustrativeembodiments, may be a query submitted to or generated by a searchengine, an input question received by a QA system for processing, aportion of a document that is subjected to natural language processing,or the like.

The received portion of content 320 is parsed by a parser 330 of theconceptual context synonym verification engine 300 to identify aconceptual unit within the portion of content 320, terms in theconceptual unit and/or portion of content 320, remove stop words fromthe conceptual unit and/or portion of content, and otherwise tokenizethe portion of content 320 for processing by the semantic affinityevaluation engine 350. With regard to a “conceptual unit” what is meantis a portion of text that is associated with a same concept.

There are multiple ways to define conceptual units. These include, butare not limited to analyzing the structure of the document, and defineconceptual units as the smallest individually named/numbered sections.In the present document, for example, one may define semantic units asnumbered paragraphs.

Another way to define conceptual units is to analyze the potential forambiguity between a term and its potential synonym, and base theconceptual unit size on a corresponding threshold. As one increases thesize of the conceptual unit from a 2-gram (adjacent terms) to sentence,paragraph, document, collection of documents, and the entire corpus, thedistance metric will get smaller and smaller until the point where allwords are equally related (the entire corpus as one unit). One canmeasure potential for ambiguity by determining the distance betweenterms in question and other random words from the corpus at variousdifferent conceptual unit sizes, and then set a corresponding threshold.

A third way to define conceptual units is to treat “conceptual unit” as“semantic resolution” and empirically experiment to determine whatconceptual unit size most closely matches the writing styles of theauthors of the corpus. Thus, the portion of content may comprise one ormore conceptual units depending upon the number of concepts covered bythe portion of content. Of course, other ways of defining conceptualunits may be used without departing from the spirit and scope of thepresent invention.

For simplicity, in the case of queries or input questions, the portionof content 320 itself may be the conceptual unit. In other embodiments,the portion of content may comprise a document, paragraph, or largerportion of text that may comprise multiple concepts, each of which maybe considered a conceptual unit, e.g., the conceptual units in such acase may be sentences, n-grams, clauses, or the like. For purpose of thefollowing description, it will be assumed that the portion of content320 comprises a single conceptual unit, such as in the case of a querysubmitted to a search engine or an input question submitted to a QAsystem.

The terms identified by the parser 330 may further be used to perform alookup operation in a synonyms list data structure 340 that storessynonyms for terms in portions of content. In some illustrativeembodiments, the synonyms list data structure 340 may store a genericsynonyms list that stores synonyms for a plurality of different termsregardless of subject matter domain. In other illustrative embodiments,the synonyms list data structure 340 may store a plurality of synonymlists that are associated with different domains. In such an embodiment,the NLP mechanism 310 may send, with the portion of content 320, anindicator of the domain with which the NLP mechanism 310 determines theportion of content 320 is associated. For example, in a QA system, aspart of processing an input question, the QA system may determine adomain associated with the input question and submit an indicator ofthis domain to the conceptual context synonym verification engine 300which then uses this indication of domain to select a domain specificsynonym list from the synonyms list data structure 340. While theinvention may be used with domain specific synonym lists, since thepresent invention operates to identify valid synonyms based on thecontext, domain specific synonym lists are not necessary. However, themechanisms of the illustrative embodiments may improve upon theoperation of any natural language processing system that operates ongeneric and/or domain specific synonym list data structures.

From the synonym list data structure 340, a set of one or more synonymsfor each term identified by the parser 330 is identified and provided tothe semantic affinity evaluation engine 350. For each original termidentified by the parser 330, and for each synonym for that termidentified in the set of one or more synonyms, an operation is performedto determine the semantic affinity, or semantic distance, of theoriginal term with the other identified terms in the portion of content320, and to determine the semantic affinity of the synonym with theother identified terms in the portion of content 320. For each pair oforiginal term and synonym, the semantic affinity measure calculated forthe original term is compared to the semantic affinity measurecalculated for the synonym and if a predetermined relationship existsbetween these semantic affinity measures, then it is determined that thesynonym is a valid synonym for the original term within the conceptualcontext of the portion of content 320 and should be used in furtherprocessing by the NLP mechanism 310.

The semantic affinity evaluation engine 350 may implement any known orlater developed semantic affinity or semantic distance calculationalgorithms suitable to the particular implementation. As discussedabove, examples of such semantic affinity/distance calculationalgorithms include, but are not limited to, a Normalized CompressiveDistance (NCD) algorithm, a Normalized Google Distance (NGD) algorithm,or the like. NGD, for example, provides a unit-less distance in semanticspace between two words. NGD does this by comparing the number ofdocuments that contain the first word, the number of documents thatcontain the second word, the number of documents containing both words,and the total number of documents in the collection. It is given by theformula below, where M is the total number of web pages searched byGoogle; f(x) and f(y) are the number of hits for search terms x and y,respectively; and f(x, y) is the number of web pages on which both x andy occur.

${{NGD}\left( {x,y} \right)} = \frac{{\max\left\{ {{\log\;{f(x)}},{\log\;{f(y)}}} \right\}} - {\log\;{f\left( {x,y} \right)}}}{{\log\; M} - {\min\left\{ {{\log\;{f(x)}},{\log\;{f(y)}}} \right\}}}$

The semantic affinity/distance calculation algorithms are modified tooperate on a conceptual unit rather than entire documents or acombination of terms from multiple documents in a corpus strungtogether, as is the basis of known NCD and NGD algorithms, to determineaffinity. That is, a conceptual unit, which may be a sub-portion of aportion of content, is used as the basis of the semanticaffinity/distance calculation so that the semantic affinity/distance iscalculated with relation to a single concept context. Thus, it isdetermined how related an original term/synonym is to the other termswithin a narrower conceptual context than looking at an entire document,a corpus of documents, or the like. As a result, the mechanisms of theillustrative embodiments are able to perform conceptual context basedsynonym verification.

The semantic affinity evaluation engine 350 calculates, for each pair ofthe original term with another term in the conceptual unit of theportion of content 320, a semantic affinity/distance using a semanticaffinity/distance function f( ), e.g., NGD(Wn, ORIG) where NGD is aNormalized Google Distance (NGD) function that operates on W and ORIGwhere W is a set of remaining words/terms in the conceptual unit andORIG is the original word/term. A sum of these semanticaffinities/distances across all pairs of the original term with otherterms in the conceptual unit is generated, e.g., sum from 1 to N ofNGD(Wn, ORIG). A relative contribution of each semanticaffinity/distance to the total may be provided by multiplying eachsemantic affinity/distance by 1/N when performing the summation, e.g.,1/N*f(Wn, ORIG) summed over the range from 1 to N.

A similar calculation may be performed for the synonym being evaluatedsuch that a function, in one illustrative embodiment, may be 1/N*NGD(Wn,SYN). A constant α may be applied to each semantic affinity/distancemeasure to accommodate imprecise matches of synonyms.

The semantic affinity/distance measures generated for the original termand the synonym may be compared to one another to determine if apredefined relationship exists between these semantic affinity/distancemeasures. If the relationship exists, i.e. a “pass” result is generated,then the synonym is determined to be a valid synonym for the conceptualcontext of the conceptual unit. If the relationship does not exist, i.e.a “fail” result is generated, then the synonym is determined to not be avalid synonym for the conceptual context of the conceptual unit. In thecase of a “fail” result, the synonym may be removed from the synonymlist that is passed back to the NLP mechanism for use by the NLPmechanism in performing an NLP operation. If the result is a “pass”,then the synonym is maintained in the synonym list. Thus, a verifiedsynonym list 360 is generated and passed back to the NLP mechanism 310.This verified synonym list 360 may comprise all of the synonymsretrieved from the synonym list data structure 340 for the terms in theportion of content 320, or may comprise a pruned or reduced size synonymlist in which some of the synonyms have been removed based on “fail”results generated in the manner described above.

In one illustrative embodiment, the predetermined relationship is one inwhich the semantic affinity/distance of the original term is one or moreof equal to, greater than, or less than the semantic affinity/distanceof the synonym. In one illustrative embodiment, if the semantic distanceof the synonym is less than or equal to the semantic distance of theoriginal term, then the synonym is a valid synonym for use by the NLPmechanism 310. If the semantic distance of the synonym is greater thanthe semantic distance of the original term, then the synonym is not avalid synonym for use by the NLP mechanism 310. This relationship isrepresented by the above equation 2. Other relationships may be used inaddition to, or in replacement of, these relationships depending uponthe particular desired implementation.

The NLP mechanism 310 may perform any type of NLP operation suitable tothe particular implementation based on the verified synonym list datastructure 360 generated by the mechanisms of the illustrativeembodiments. For example, in a QA system environment, the verifiedsynonym list data structure 360 may be used to generate queries that areapplied against a corpus of information in order to find candidateanswers to the input question or to generate modified forms of the inputquestion which may be processed by the QA system to generate candidateanswers for an original input question. In addition, or alternatively,the verified synonyms may be used to evaluate the sources of content inthe corpus for applicability to queries submitted by the QA system forgeneration of candidate answers. In a NLP based search engine, theverified synonyms may be used to generate additional queries, evaluatesources of content for the queries, or the like.

FIG. 4 is a flowchart outlining an example operation of a conceptualcontext synonym verification engine in accordance with one illustrativeembodiment. As shown in FIG. 4, the operation starts with receiving,from an NLP mechanism, a portion of content for which synonyms are to beverified (step 410). The portion of content is parsed to identifyconceptual units and terms within the portion of content (step 415). Oneor more synonym lists for the terms in the portion of content areretrieved based on results of the parsing (step 420). For a nextoriginal term in the terms of the portion of content (step 425), theoriginal term is evaluated with regard to other terms in the sameconceptual unit in which the term is present to thereby generate ameasure of affinity of the original term to the other terms within theconceptual unit (step 430).

For the next synonym associated with the original term (step 435), thesynonym is evaluated with regard to other terms in the same conceptualunit as the original term to thereby generate a measure of affinity ofthe synonym to the other terms within the conceptual unit (step 440).The operation then determines if the measure of affinity of the originalterm has a predetermined relationship (pass) to the measure of affinityof the synonym or not (fail) (step 445). If so, then the synonym inmaintained in the synonym list data structure (step 450). If not, thesynonym is discarded from the synonym list data structure (step 455). Adetermination is then made as to whether there are additional synonymsto process (step 460). If so, the operation returns to step 435. If not,the operation determines if there are more terms to be evaluated (step465). If there are more terms to be evaluated, the operation returns tostep 425. If there are no more terms to be evaluate, then the resultingverified synonym list data structure is returned to the NLP mechanismfor use in performing NLP operations (step 470).

Thus, the illustrative embodiments provide mechanisms for verifyingsynonyms to be valid synonyms for a particular conceptual context of theoriginal term. Thus, a more accurate listing of synonyms to be evaluatedby a NLP mechanism is generated based on the relatedness of the synonymto the conceptual context of the original term. As a result, a moreaccurate operation of the NLP mechanisms is achieved due to a moreaccurate listing of synonyms being considered.

As mentioned above, the mechanisms of the illustrative embodiments maybe implemented with various types of NLP mechanisms including searchengines, QA systems, and the like. QA systems operate by accessinginformation from a corpus of data or information (also referred to as acorpus of content), analyzing it, and then generating answer resultsbased on the analysis of this data. Accessing information from a corpusof data typically includes: a database query that answers questionsabout what is in a collection of structured records, and a search thatdelivers a collection of document links in response to a query against acollection of unstructured data (text, markup language, etc.).Conventional question answering systems are capable of generatinganswers based on the corpus of data and the input question, verifyinganswers to a collection of questions for the corpus of data, correctingerrors in digital text using a corpus of data, and selecting answers toquestions from a pool of potential answers, i.e. candidate answers.

Content creators, such as article authors, electronic document creators,web page authors, document database creators, and the like, maydetermine use cases for products, solutions, and services described insuch content before writing their content. Consequently, the contentcreators may know what questions the content is intended to answer in aparticular topic addressed by the content. Categorizing the questions,such as in terms of roles, type of information, tasks, or the like,associated with the question, in each document of a corpus of data mayallow the QA system to more quickly and efficiently identify documentscontaining content related to a specific query. The content may alsoanswer other questions that the content creator did not contemplate thatmay be useful to content users. The questions and answers may beverified by the content creator to be contained in the content for agiven document. These capabilities contribute to improved accuracy,system performance, machine learning, and confidence of the QA system.Content creators, automated tools, or the like, may annotate orotherwise generate metadata for providing information useable by the QAsystem to identify these questions and answer attributes of the content.

Operating on such content, the QA system generates answers for inputquestions using a plurality of intensive analysis mechanisms whichevaluate the content to identify the most probable answers, i.e.candidate answers, for the input question. The illustrative embodimentsleverage the work already done by the QA system to reduce thecomputation time and resource cost for subsequent processing ofquestions that are similar to questions already processed by the QAsystem. One example of a question/answer generation which may be used inconjunction with the principles described herein is described in U.S.Patent Application Publication No. 2011/0125734, which is hereinincorporated by reference in its entirety.

Returning to FIG. 1, the distributed data processing system 100 of FIG.1 may implement a QA system on one or more of the computing devices 104(comprising one or more processors and one or more memories, andpotentially any other computing device elements generally known in theart including buses, storage devices, communication interfaces, and thelike) connected to the computer network 102. The QA system and network102 may enable question/answer (QA) generation functionality for one ormore QA system users via their respective computing devices 110-112.

The QA system may be configured to implement a QA system pipeline thatreceives inputs from various sources. For example, the QA system mayreceive input from the network 102, a corpus of electronic documents, QAsystem users, or other data and other possible sources of input. In oneembodiment, some or all of the inputs to the QA system may be routedthrough the network 102. The various computing devices 104 on thenetwork 102 may include access points for content creators and QA systemusers. Some of the computing devices 104 may include devices for adatabase storing the corpus of data 108 (which is shown as a separateentity in FIG. 1 for illustrative purposes only). Portions of the corpusof data 108 may also be provided on one or more other network attachedstorage devices, in one or more databases, or other computing devicesnot explicitly shown in FIG. 1. The network 102 may include localnetwork connections and remote connections in various embodiments, suchthat the QA system may operate in environments of any size, includinglocal and global, e.g., the Internet.

In one embodiment, the content creator creates content in a document foruse as part of a corpus of data 108 with the QA system. The document mayinclude any file, text, article, or source of data for use in the QAsystem. QA system users may access the QA system via a networkconnection or an Internet connection to the network 102, and may inputquestions to the QA system that may be answered by the content in thecorpus of data 108. In one embodiment, the questions may be formed usingnatural language. The QA system may interpret the question and provide aresponse to the QA system user, e.g., QA system user 110, containing oneor more answers to the question. In some embodiments, the QA system mayprovide a response to users in a ranked list of candidate answers.

The QA system implements a QA system pipeline which comprises aplurality of stages for processing an input question, the corpus of data108, and generating answers for the input question based on theprocessing of the corpus of data 108. The QA system pipeline will bedescribed in greater detail hereafter with regard to FIG. 5.

In some illustrative embodiments, the QA system may be the IBM Watson™QA system available from International Business Machines Corporation ofArmonk, N.Y., which is augmented with the mechanisms of the illustrativeembodiments described hereafter. The IBM Watson™ QA system may receivean input question which it then parses to extract the major features ofthe question, that in turn are then used to formulate queries that areapplied to the corpus of data. Based on the application of the queriesto the corpus of data, a set of hypotheses, or candidate answers to theinput question, are generated by looking across the corpus of data forportions of the corpus of data that have some potential for containing avaluable response to the input question.

The IBM Watson™ QA system then performs deep analysis on the language ofthe input question and the language used in each of the portions of thecorpus of data found during the application of the queries using avariety of reasoning algorithms. There may be hundreds or even thousandsof reasoning algorithms applied, each of which performs differentanalysis, e.g., comparisons, and generates a score. For example, somereasoning algorithms may look at the matching of terms and synonymswithin the language of the input question and the found portions of thecorpus of data. Other reasoning algorithms may look at temporal orspatial features in the language, while others may evaluate the sourceof the portion of the corpus of data and evaluate its veracity.

The scores obtained from the various reasoning algorithms indicate theextent to which the potential response is inferred by the input questionbased on the specific area of focus of that reasoning algorithm. Eachresulting score is then weighted against a statistical model. Thestatistical model captures how well the reasoning algorithm performed atestablishing the inference between two similar passages for a particulardomain during the training period of the IBM Watson™ QA system. Thestatistical model may then be used to summarize a level of confidencethat the IBM Watson™ QA system has regarding the evidence that thepotential response, i.e. candidate answer, is inferred by the question.This process may be repeated for each of the candidate answers until theIBM Watson™ QA system identifies candidate answers that surface as beingsignificantly stronger than others and thus, generates a final answer,or ranked set of answers, for the input question. More information aboutthe IBM Watson™ QA system may be obtained, for example, from the IBMCorporation website, IBM Redbooks, and the like. For example,information about the IBM Watson™ QA system can be found in Yuan et al.,“Watson and Healthcare,” IBM developerWorks, 2011 and “The Era ofCognitive Systems: An Inside Look at IBM Watson and How it Works” by RobHigh, IBM Redbooks, 2012.

FIG. 5 illustrates a QA system pipeline for processing an input questionin accordance with one illustrative embodiment. The QA system pipelineof FIG. 5 may be implemented, for example, as QA system pipeline of a QAsystem in FIG. 1. It should be appreciated that the stages of the QAsystem pipeline shown in FIG. 5 may be implemented as one or moresoftware engines, components, or the like, which are configured withlogic for implementing the functionality attributed to the particularstage. Each stage may be implemented using one or more of such softwareengines, components or the like. The software engines, components, etc.may be executed on one or more processors of one or more data processingsystems or devices and may utilize or operate on data stored in one ormore data storage devices, memories, or the like, on one or more of thedata processing systems. The QA system pipeline of FIG. 5 may beaugmented, for example, in one or more of the stages to implement theimproved mechanism of the illustrative embodiments described hereafter,additional stages may be provided to implement the improved mechanism,or separate logic from the pipeline 500 may be provided for interfacingwith the pipeline 500 and implementing the improved functionality andoperations of the illustrative embodiments

As shown in FIG. 5, the QA system pipeline 500 comprises a plurality ofstages 510-580 through which the QA system operates to analyze an inputquestion and generate a final response. In an initial question inputstage 510, the QA system receives an input question that is presented ina natural language format. That is, a user may input, via a userinterface, an input question for which the user wishes to obtain ananswer, e.g., “Who are Washington's closest advisors?” In response toreceiving the input question, the next stage of the QA system pipeline500, i.e. the question and topic analysis stage 520, parses the inputquestion using natural language processing (NLP) techniques to extractmajor features from the input question, classify the major featuresaccording to types, e.g., names, dates, or any of a plethora of otherdefined topics. For example, in the example question above, the term“who” may be associated with a topic for “persons” indicating that theidentity of a person is being sought, “Washington” may be identified asa proper name of a person with which the question is associated,“closest” may be identified as a word indicative of proximity orrelationship, and “advisors” may be indicative of a noun or otherlanguage topic.

The identified major features may then be used during the questiondecomposition stage 530 to decompose the question into one or morequeries that may be applied to the corpora of data/information 545 inorder to generate one or more hypotheses. The queries may be generatedin any known or later developed query language, such as the StructureQuery Language (SQL), or the like. The queries may be applied to one ormore databases storing information about the electronic texts,documents, articles, websites, and the like, that make up the corpora ofdata/information 545. That is, these various sources themselves,different collections of sources, and the like, may represent adifferent corpus 547 within the corpora 545. There may be differentcorpora 547 defined for different collections of documents based onvarious criteria depending upon the particular implementation. Forexample, different corpora may be established for different topics,subject matter categories, sources of information, or the like. As oneexample, a first corpus may be associated with healthcare documentswhile a second corpus may be associated with financial documents.Alternatively, one corpus may be documents published by the U.S.Department of Energy while another corpus may be IBM Redbooks documents.Any collection of content having some similar attribute may beconsidered to be a corpus 547 within the corpora 545.

The queries may be applied to one or more databases storing informationabout the electronic texts, documents, articles, websites, and the like,that make up the corpus of data/information, e.g., the corpus of data108 in FIG. 1. The queries being applied to the corpus ofdata/information at the hypothesis generation stage 540 to generateresults identifying potential hypotheses for answering the inputquestion which can be evaluated. That is, the application of the queriesresults in the extraction of portions of the corpus of data/informationmatching the criteria of the particular query. These portions of thecorpus may then be analyzed and used, during the hypothesis generationstage 540, to generate hypotheses for answering the input question.These hypotheses are also referred to herein as “candidate answers” forthe input question. For any input question, at this stage 540, there maybe hundreds of hypotheses or candidate answers generated that may needto be evaluated.

The QA system pipeline 500, in stage 550, then performs a deep analysisand comparison of the language of the input question and the language ofeach hypothesis or “candidate answer” as well as performs evidencescoring to evaluate the likelihood that the particular hypothesis is acorrect answer for the input question. As mentioned above, this mayinvolve using a plurality of reasoning algorithms, each performing aseparate type of analysis of the language of the input question and/orcontent of the corpus that provides evidence in support of, or not, ofthe hypothesis. Each reasoning algorithm generates a score based on theanalysis it performs which indicates a measure of relevance of theindividual portions of the corpus of data/information extracted byapplication of the queries as well as a measure of the correctness ofthe corresponding hypothesis, i.e. a measure of confidence in thehypothesis.

In the synthesis stage 560, the large number of relevance scoresgenerated by the various reasoning algorithms may be synthesized intoconfidence scores for the various hypotheses. This process may involveapplying weights to the various scores, where the weights have beendetermined through training of the statistical model employed by the QAsystem and/or dynamically updated, as described hereafter. The weightedscores may be processed in accordance with a statistical model generatedthrough training of the QA system that identifies a manner by whichthese scores may be combined to generate a confidence score or measurefor the individual hypotheses or candidate answers. This confidencescore or measure summarizes the level of confidence that the QA systemhas about the evidence that the candidate answer is inferred by theinput question, i.e. that the candidate answer is the correct answer forthe input question.

The resulting confidence scores or measures are processed by a finalconfidence merging and ranking stage 570 which may compare theconfidence scores and measures, compare them against predeterminedthresholds, or perform any other analysis on the confidence scores todetermine which hypotheses/candidate answers are the most likely to bethe answer to the input question. The hypotheses/candidate answers maybe ranked according to these comparisons to generate a ranked listing ofhypotheses/candidate answers (hereafter simply referred to as “candidateanswers”). From the ranked listing of candidate answers, at stage 580, afinal answer and confidence score, or final set of candidate answers andconfidence scores, may be generated and output to the submitter of theoriginal input question.

In accordance with the illustrative embodiments, to aid in processingthe input question 510 by the QA system pipeline 500, the QA systempipeline 500 implements a conceptual context synonym verification engine590, which may operate in accordance with one or more of theillustrative embodiments described previously above, such as with regardto conceptual context synonym verification engine 300 in FIG. 3, forexample. In this implementation of the mechanisms of the illustrativeembodiments, the input question 510 is considered to be the conceptualunit upon which the conceptual context synonym verification engine 590operates. The corpus upon which the QA system operates is also analyzedand separated into conceptual units, such as part of a corpus ingestionoperation, preprocessing operation, or the like, such that distanceand/or affinity calculations may be performed. Other operations of theparser may be integrated into the question and topic analysis stagelogic 520 when performing feature extraction.

The conceptual context synonym verification engine 590 may receive theextracted features of the input question 510 as generated by thequestion and topic analysis stage logic 520 which includes the terms ofthe input question 510 and potentially a domain of the input question510. The domain of the input question 510 may be specified by thesubmitter of the input question 510, may be automatically determinedfrom analysis of the extracted features of the input question 510, e.g.,matching terms in the input question 510 to terms associated withvarious domains, or the like.

The conceptual context synonym verification engine 590 may then retrievea corresponding synonym list for the terms in the extracted featuresfrom the synonym list data structure 595. Such retrieval of acorresponding synonym list may be based on the identified domain of theinput question 510 or may involve retrieving a more general synonym listthat is not domain specific. The conceptual context synonym verificationengine 590 then performs the synonym verification operations previouslydescribed above in accordance with one or more of the illustrativeembodiments so as to generate a verified synonym list data structure 598that is passed as input to one or more of the question decompositionstage logic 530, the hypothesis generation stage logic 540, and/or thehypothesis and evidence scoring stage logic 550. These various stagesmay utilize the verified synonyms list data structure 598 to performtheir associated operations that involve natural language processing ofthe input question 510 and/or the content in the corpus 547 or corpora545. Examples of such natural language processing operations performedby a QA system pipeline are described in “Finding Needles in theHaystack: Search and Candidate Generation,” Chu-Carroll et al, IBMJournal of Research and Development, Volume 56, Issue 3.4, May-June 2012and “Question Analysis: How Watson Reads a Clue,” Lally et al., IBMJournal of Research and Development, Volume 56, Issue 3.4, May-June2012.

As noted above, it should be appreciated that the illustrativeembodiments may take the form of an entirely hardware embodiment, anentirely software embodiment or an embodiment containing both hardwareand software elements. In one example embodiment, the mechanisms of theillustrative embodiments are implemented in software or program code,which includes but is not limited to firmware, resident software,microcode, etc.

A data processing system suitable for storing and/or executing programcode will include at least one processor coupled directly or indirectlyto memory elements through a system bus. The memory elements can includelocal memory employed during actual execution of the program code, bulkstorage, and cache memories which provide temporary storage of at leastsome program code in order to reduce the number of times code must beretrieved from bulk storage during execution.

Input/output or I/O devices (including but not limited to keyboards,displays, pointing devices, etc.) can be coupled to the system eitherdirectly or through intervening I/O controllers. Network adapters mayalso be coupled to the system to enable the data processing system tobecome coupled to other data processing systems or remote printers orstorage devices through intervening private or public networks. Modems,cable modems and Ethernet cards are just a few of the currentlyavailable types of network adapters.

The description of the present invention has been presented for purposesof illustration and description, and is not intended to be exhaustive orlimited to the invention in the form disclosed. Many modifications andvariations will be apparent to those of ordinary skill in the art. Theembodiment was chosen and described in order to best explain theprinciples of the invention, the practical application, and to enableothers of ordinary skill in the art to understand the invention forvarious embodiments with various modifications as are suited to theparticular use contemplated.

What is claimed is:
 1. A method, in a data processing system comprisinga processor and a memory, for performing context based synonym filteringfor natural language processing, the method comprising: parsing, by thedata processing system, content into one or more conceptual units,wherein each conceptual unit comprises a portion of text of the contentthat is associated with a single concept; for each conceptual unit inthe one or more conceptual units, identifying, by the data processingsystem, a term in the conceptual unit that has a synonym to be utilizedduring natural language processing of the content; determining, by thedata processing system, a first measure of relatedness of the term to atleast one other term in the conceptual unit; determining, by the dataprocessing system, a second measure of relatedness of the synonym of theterm to the at least one other term in the conceptual unit; determining,by the data processing system, whether or not to utilize the synonymwhen performing natural language processing on the conceptual unit,based on the first measure of relatedness and second measure ofrelatedness; and performing, by the data processing system, naturallanguage processing on the content based on results of determiningwhether or not to utilize the synonym, wherein the first measure ofrelatedness is calculated as the sum, from 1 to N, where N is a numberof remaining words in the conceptual unit, of the quantity 1/N*(f(Wn,ORIG)), where f( ) is a semantic distance function, W is the set ofremaining words in the conceptual unit, and ORIG is the term, andwherein the second measure of relatedness is calculated as the sum, from1 to N, of the quantity alpha*1/N*(f(Wn, SYN)), where alpha is aconstant, and SYN is the synonym, wherein determining whether or not toutilize the synonym when performing natural language processing on theconceptual unit comprises: comparing the first measure of relatedness tothe second measure of relatedness using the following relationship:${{\sum\limits_{n = 1}^{N}{\frac{1}{N}{f\left( {W_{n},{ORIG}} \right)}}} \leq {\sum\limits_{n = 1}^{N}{\alpha\frac{1}{N}{f\left( {W_{n},{SYN}} \right)}\begin{Bmatrix}{pass} \\{fail}\end{Bmatrix}}}};{and}$ determining to utilize the synonym whenperforming natural language processing on the conceptual unit inresponse to the relationship being satisfied.
 2. The method of claim 1,wherein the content is a question input to a question and answermechanism of the data processing system that implements the naturallanguage processing on the question.
 3. The method of claim 1, whereindetermining whether or not to utilize the synonym when performingnatural language processing on the conceptual unit comprises: comparingthe first measure of relatedness to the second measure of relatedness;and determining to utilize the synonym when performing natural languageprocessing on the conceptual unit in response to the first measurehaving a specified relationship to the second measure.
 4. The method ofclaim 3, wherein the specified relationship is that the first measure isgreater than or equal to the second measure.
 5. The method of claim 1,wherein the first measure of relatedness of the term to at least oneother term in the conceptual unit is a first semantic distance betweenthe term and the at least one other term in the conceptual unit, andwherein the second measure of relatedness of the synonym of the term tothe at least one other term in the conceptual unit is a second semanticdistance between the synonym and the at least one other term in theconceptual unit.
 6. The method of claim 5, wherein the first semanticdistance and the second semantic distance are generated using at leastone of a Normalized Compressive Distance algorithm, a Normalized GoogleDistance algorithm, or other semantic similarity algorithm.
 7. Acomputer program product comprising a computer readable storage mediumhaving a computer readable program stored therein, wherein the computerreadable program, when executed on a computing device, causes thecomputing device to: parse content into one or more conceptual units,wherein each conceptual unit comprises a portion of text of the contentthat is associated with a single concept; for each conceptual unit inthe one or more conceptual units, identify a term in the conceptual unitthat has a synonym to be utilized during natural language processing ofthe content; determine a first measure of relatedness of the term to atleast one other term in the conceptual unit; determine a second measureof relatedness of the synonym of the term to the at least one other termin the conceptual unit; determine whether or not to utilize the synonymwhen performing natural language processing on the conceptual unit basedon the first measure of relatedness and the second measure ofrelatedness; and perform natural language processing on the contentbased on results of determining whether or not to utilize the synonym,wherein the first measure of relatedness is calculated as the sum, from1 to N, where N is a number of remaining words in the conceptual unit,of the quantity 1/N*(f(Wn, ORIG)), where f( ) is a semantic distancefunction, W is the set of remaining words in the conceptual unit, andORIG is the term, and wherein the second measure of relatedness iscalculated as the sum, from 1 to N, of the quantity alpha*1/N*(f(Wn,SYN)), where alpha is a constant, and SYN is the synonym, wherein thecomputer readable program further causes the computing device todetermine whether or not to utilize the synonym when performing naturallanguage processing on the conceptual unit at least by: comparing thefirst measure of relatedness to the second measure of relatedness usingthe following relationship:${{\sum\limits_{n = 1}^{N}{\frac{1}{N}{f\left( {W_{n},{ORIG}} \right)}}} \leq {\sum\limits_{n = 1}^{N}{\alpha\frac{1}{N}{f\left( {W_{n},{SYN}} \right)}\begin{Bmatrix}{pass} \\{fail}\end{Bmatrix}}}};{and}$ determining to utilize the synonym whenperforming natural language processing on the conceptual unit inresponse to the relationship being satisfied.
 8. The computer programproduct of claim 7, wherein the content is a question input to aquestion and answer mechanism of the data processing system thatimplements the natural language processing on the question.
 9. Thecomputer program product of claim 7, wherein the computer readableprogram further causes the computing device to determine whether or notto utilize the synonym when performing natural language processing onthe conceptual unit at least by: comparing the first measure ofrelatedness to the second measure of relatedness; and determining toutilize the synonym when performing natural language processing on theconceptual unit in response to the first measure having a specifiedrelationship to the second measure.
 10. The computer program product ofclaim 9, wherein the specified relationship is that the first measure isgreater than or equal to the second measure.
 11. The computer programproduct of claim 7, wherein the first measure of relatedness of the termto at least one other term in the conceptual unit is a first semanticdistance between the term and the at least one other term in theconceptual unit, and wherein the second measure of relatedness of thesynonym of the term to the at least one other term in the conceptualunit is a second semantic distance between the synonym and the at leastone other term in the conceptual unit.
 12. The computer program productof claim 11, wherein the first semantic distance and the second semanticdistance are generated using at least one of a Normalized CompressiveDistance algorithm, a Normalized Google Distance algorithm, or othersemantic similarity algorithm.
 13. An apparatus comprising: a processor;and a memory coupled to the processor, wherein the memory comprisesinstructions which, when executed by the processor, cause the processorto: parse content into one or more conceptual units, wherein eachconceptual unit comprises a portion of text of the content that isassociated with a single concept; for each conceptual unit in the one ormore conceptual units, identify a term in the conceptual unit that has asynonym to be utilized during natural language processing of thecontent; determine a first measure of relatedness of the term to atleast one other term in the conceptual unit; determine a second measureof relatedness of the synonym of the term to the at least one other termin the conceptual unit; determine whether or not to utilize the synonymwhen performing natural language processing on the conceptual unit basedon the first measure of relatedness and the second measure ofrelatedness; and perform natural language processing on the contentbased on results of determining whether or not to utilize the synonym,wherein the first measure of relatedness is calculated as the sum, from1 to N, where N is a number of remaining words in the conceptual unit,of the quantity 1/N*(f(Wn, ORIG)), where f( ) is a semantic distancefunction, W is the set of remaining words in the conceptual unit, andORIG is the term, and wherein the second measure of relatedness iscalculated as the sum, from 1 to N, of the quantity alpha*1/N*(f(Wn,SYN)), where alpha is a constant, and SYN is the synonym, wherein theinstructions further cause the processor to determine whether or not toutilize the synonym when performing natural language processing on theconceptual unit at least by: comparing the first measure of relatednessto the second measure of relatedness using the following relationship:${{\sum\limits_{n = 1}^{N}{\frac{1}{N}{f\left( {W_{n},{ORIG}} \right)}}} \leq {\sum\limits_{n = 1}^{N}{\alpha\frac{1}{N}{f\left( {W_{n},{SYN}} \right)}\begin{Bmatrix}{pass} \\{fail}\end{Bmatrix}}}};{and}$ determining to utilize the synonym whenperforming natural language processing on the conceptual unit inresponse to the relationship being satisfied.
 14. The apparatus of claim13, wherein the instructions further cause the processor to determinewhether or not to utilize the synonym when performing natural languageprocessing on the conceptual unit at least by: comparing the firstmeasure of relatedness to the second measure of relatedness; anddetermining to utilize the synonym when performing natural languageprocessing on the conceptual unit in response to the first measure beinggreater than or equal to the second measure.
 15. The apparatus of claim14, wherein the specified relationship is that the first measure isgreater than or equal to the second measure.
 16. The apparatus of claim13, wherein the content is a question input to a question and answermechanism of the data processing system that implements the naturallanguage processing on the question.